<%-- 
    Document   : index
    Created on : Dec 7, 2012, 12:51:47 PM
    Author     : doraemon
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

<legend>
    Conference Listing
</legend>
<table class="table table-striped">
    <tr>
        <th>Title</th>
        <th>Start</th>
        <th>End</th>
        <th>Location</th>
        <th>Action</th>
    </tr>

    <s:iterator value="conferences" var="conference">
        <tr>
            <td><a href='<s:url action="Conference" />/show/<s:property value="#conference.id"/>'><s:property value="#conference.title" /></a></td>               
            <td><s:property value="#conference.startDate" /></td>
            <td><s:property value="#conference.endDate" /></td>
            <td><s:property value="#conference.location.name" /></td>
            <td>
                <s:url action="Conference/edit" var="editURL">
                    <s:param name="id" value="#conference.id" />
                </s:url>
                <a href='<s:url action="Conference"/>/edit/<s:property value="#conference.id"/>'>Edit</a>
                &nbsp;
                <a href='<s:url action="Conference"/>/delete/<s:property value="#conference.id"/>'>Delete</a>
            </td>
        </tr>
    </s:iterator>
        
    
        
</table>
<h4>  
  <a href='<s:url action="Conference"/>/create'>Create a new Conference</a>  
</h4>  